<template>
  <div class="nav">
    <router-link class="nav-item" to="/goods">
      我要点餐
      <i class="line"></i>
    </router-link>
    <router-link class="nav-item" to="/kitchen">
      自在厨房
      <i class="line"></i>
    </router-link>
    <router-link class="nav-item" to="/about">
      关于我们
      <i class="line"></i>
    </router-link>
  </div>
</template>
<script setup lang="ts"></script>
<style scoped lang="less">
.nav {
  display: flex;
  width: 100vw;
  height: 3vh;
  font-size: 1.5vh;
  line-height: 3vh;
  border-bottom: 1px solid #e4e4e4;
  background-color: white;
  .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666666;
    position: relative;
  }

  .line {
    width: 5vw;
    height: 0.4vh;
    display: inline-block;
    background: #ffbb22;

    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -15px;
  }
}
</style>
